package dao;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Goods entity. @author MyEclipse Persistence Tools
 */

public class Goods implements java.io.Serializable {

	// Fields

	private Integer goodsId;
	private GoodsDetail goodsDetail;
	private Timestamp purchaseDate;
	private String state;
	private Set saleDetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Goods() {
	}

	/** minimal constructor */
	public Goods(Integer goodsId, GoodsDetail goodsDetail,
			Timestamp purchaseDate, String state) {
		this.goodsId = goodsId;
		this.goodsDetail = goodsDetail;
		this.purchaseDate = purchaseDate;
		this.state = state;
	}

	/** full constructor */
	public Goods(Integer goodsId, GoodsDetail goodsDetail,
			Timestamp purchaseDate, String state, Set saleDetails) {
		this.goodsId = goodsId;
		this.goodsDetail = goodsDetail;
		this.purchaseDate = purchaseDate;
		this.state = state;
		this.saleDetails = saleDetails;
	}

	// Property accessors

	public Integer getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public GoodsDetail getGoodsDetail() {
		return this.goodsDetail;
	}

	public void setGoodsDetail(GoodsDetail goodsDetail) {
		this.goodsDetail = goodsDetail;
	}

	public Timestamp getPurchaseDate() {
		return this.purchaseDate;
	}

	public void setPurchaseDate(Timestamp purchaseDate) {
		this.purchaseDate = purchaseDate;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Set getSaleDetails() {
		return this.saleDetails;
	}

	public void setSaleDetails(Set saleDetails) {
		this.saleDetails = saleDetails;
	}

}